package com.ylz.sjzx.sio.room.entity;

import com.ylz.sjzx.sio.common.core.annotation.MessageField;
import com.ylz.sjzx.sio.common.core.enums.Cmd;
import com.ylz.sjzx.sio.common.core.utils.DateUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 手动断开连接
 *
 * @author wiqi
 * @version 1.0
 * @date 2020/12/10
 */
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ManualKickResp implements Serializable {

    private static final long serialVersionUID = -4109172303292323533L;
    @MessageField()
    private User user;
    @MessageField()
    private Cmd action;
    @MessageField(dateFormat = DateUtil.DATE_FORMAT_YYYY_MM_DD_HH_MM_SS)
    private Date time;
    @MessageField()
    private String message;

}
